﻿<UserControl
    x:Class="Adaptive.ReactiveTrader.Client.UI.SpotTiles.SpotTileView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:Adaptive.ReactiveTrader.Client.UI.SpotTiles"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:designer="using:Adaptive.ReactiveTrader.Client.UI.SpotTiles.Designer"
    xmlns:controls="using:Adaptive.ReactiveTrader.Client.Controls"
    mc:Ignorable="d"
    Height="150"
    Width="328"
    Margin="0,0,3,3"
    d:DataContext="{d:DesignInstance designer:DesignTimeSpotTileViewModel, IsDesignTimeCreatable=True}">
    <Grid>
        <controls:LazyContentControl Content="{Binding Pricing}">
            <controls:LazyContentControl.LazyContentTemplate>
                <DataTemplate>
                    <local:SpotTilePricingView />
                </DataTemplate>
            </controls:LazyContentControl.LazyContentTemplate>
        </controls:LazyContentControl>

        <controls:LazyContentControl Content="{Binding Affirmation}">
            <controls:LazyContentControl.LazyContentTemplate>
                <DataTemplate>
                    <local:SpotTileAffirmationView />
                </DataTemplate>
            </controls:LazyContentControl.LazyContentTemplate>
        </controls:LazyContentControl>

        <controls:LazyContentControl Content="{Binding Error}">
            <controls:LazyContentControl.LazyContentTemplate>
                <DataTemplate>
                    <local:SpotTileErrorView />
                </DataTemplate>
            </controls:LazyContentControl.LazyContentTemplate>
        </controls:LazyContentControl>

        <controls:LazyContentControl Content="{Binding Config}">
            <controls:LazyContentControl.LazyContentTemplate>
                <DataTemplate>
                    <local:SpotTileConfigView />
                </DataTemplate>
            </controls:LazyContentControl.LazyContentTemplate>
        </controls:LazyContentControl>
    </Grid>
</UserControl>
